package com.itheima.chap01;

public class HashcodeDemo {
    public static void main(String[] args) {
        Girl g1 = new Girl("小美", 18);
        Girl g2 = new Girl("小美", 18);

        System.out.println(g1.hashCode());
        System.out.println(g1.hashCode());
        System.out.println("--------------------");
        System.out.println(g2.hashCode());
        System.out.println(g2.hashCode());
    }

}
